# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         update方法
# Description:
# Author:       asus
# Date:         2019/3/7
#-------------------------------------------------------------------------------


dict1 = {
    'title':'欧瑞学院',
    'website':'http://geekori.com',
    'description':'从事IT课程研发和销售'
}
dict2 = {
    'title':'欧瑞科技',
    'products':['欧瑞学院','博客','读书频道','极客题库','OriUnity'],
    'description':'从事在线IT课程研发和销售，工具软件研发'
}
#用dict2更新dict1
dict1.update(dict2)
for item in dict1.items():#输出key-value对
    print("key = {key} value = {value}".format(key = item[0],value = item[1]))
